#include <reg52.h>


sbit IN1=P0^3;
sbit IN2=P0^4;
sbit IN3=P0^5;
sbit IN4=P0^6;

void RightMotoForward()
{IN1=1;IN2=0;}

void RightMotoBack()
{IN1=0;IN2=1;}

void LeftMotoForward()
{IN3=1;IN4=0;}

void LeftMotoBack()
{IN3=0;IN4=1;}

void RightStop()
{IN1=1;IN2=1;}

void LeftStop()
{IN3=1;IN4=1;}